<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateExamsTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateExamsLabel_id}" for="id" />
                    <h:inputText id="id" value="#{examsController.selected.id}" title="#{bundle.CreateExamsTitle_id}" required="true" requiredMessage="#{bundle.CreateExamsRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.CreateExamsLabel_dateCreate}" for="dateCreate" />
                    <h:inputText id="dateCreate" value="#{examsController.selected.dateCreate}" title="#{bundle.CreateExamsTitle_dateCreate}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateExamsLabel_dateStart}" for="dateStart" />
                    <h:inputText id="dateStart" value="#{examsController.selected.dateStart}" title="#{bundle.CreateExamsTitle_dateStart}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateExamsLabel_dateEnd}" for="dateEnd" />
                    <h:inputText id="dateEnd" value="#{examsController.selected.dateEnd}" title="#{bundle.CreateExamsTitle_dateEnd}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateExamsLabel_dateReCounting}" for="dateReCounting" />
                    <h:inputText id="dateReCounting" value="#{examsController.selected.dateReCounting}" title="#{bundle.CreateExamsTitle_dateReCounting}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateExamsLabel_status}" for="status" />
                    <h:inputText id="status" value="#{examsController.selected.status}" title="#{bundle.CreateExamsTitle_status}" />
                    <h:outputLabel value="#{bundle.CreateExamsLabel_subjectId}" for="subjectId" />
                    <h:selectOneMenu id="subjectId" value="#{examsController.selected.subjectId}" title="#{bundle.CreateExamsTitle_subjectId}" >
                        <f:selectItems value="#{subjectsController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{examsController.create}" value="#{bundle.CreateExamsSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{examsController.prepareList}" value="#{bundle.CreateExamsShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.CreateExamsIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
